package com.sfac.springboot.modules.account.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sfac.springboot.modules.account.entity.Resource;
import com.sfac.springboot.modules.common.vo.Result;
import com.sfac.springboot.modules.common.vo.Search;

/**
 * @author jzq
 * @date 2022/8/27 11:06
 */
public interface ResourceService {

    Result<Resource> insertResource(Resource resource);

    Result<Resource> updateResource(Resource resource);

    Result<Object> deleteResourceById(int id);

    Resource getResourceById(int id);

    List<Resource> getResourcesByRoleId(int roleId);

    PageInfo<Resource> getResourcesBySearchBean(Search search);
}
